TranslateView
The TranslateView method translates the content of the source storage-unit view and stores the translated data in the destination storage-unit view.
ODTranslateResult TranslateView ( in ODStorageUnitView fromView, in ODStorageUnitView toView);
fromView
- A reference to a storage-unit view; the focused value that contains the data to translate.
toView
- A reference to a storage-unit view; the focused value that is to contain the translated data.
- return value
- The result of the translation. The return value is one of the following:
kODCanTranslate
orkODCannotTranslate
.DISCUSSION
The return valuekODCanTranslate
indicates that translation is allowed with the specified type. The return valuekODCannotTranslate
indicates that translation is not allowed with the specified type.Your part calls this method when it wants to translate some data in a storage unit.
EXCEPTIONS
This method may throw platform-specific exceptions.
kODErrNoSysTranslationFacility
- The underlying system translation facility is not present.
kODErrOutOfMemory
- There is not enough memory to allocate the translated data.
SEE ALSO
TheODTranslateResult
type (page 920).
"Translating Before Incorporating or Embedding" on page 349 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help